package civicinity.ist.psu.edu.rssfeed;

public class RSSItem implements Cloneable
{
	private int mID;
	private int mRSSID;
	private int mRSSCategory;
	private double mLatitude;
	private double mLongitude;
	private String mRSSURL;
	private String _title = "";
	private String _description = "";
	private String _link = "";
	private String _category = "";
	private String _pubdate = "";
	private String mStartDate = "";
	private String mEndDate = "";

	public RSSItem clone() throws CloneNotSupportedException {
		RSSItem fItem = (RSSItem)super.clone();
		
		return fItem;
	}
	public RSSItem()
	{
	}
	public void setID(int id) {
		mID = id;
	}
	public void setRSSID(int rssID) {
		mRSSID = rssID;
	}
	public void setRSSCategory(int rssCategory) {
		mRSSCategory = rssCategory;
	}
	public void setLatitude(double latitude) {
		mLatitude = latitude;
	}
	public void setLongitude(double longitude) {
		mLongitude = longitude;
	}
	public void setRSSURL(String rssURL) {
		mRSSURL = rssURL;
	}
	public void setTitle(String title)
	{
		_title = title;
	}
	public void setDescription(String description)
	{
		_description = description;
	}
	public void setLink(String link)
	{
		_link = link;
	}
	public void setCategory(String category)
	{
		_category = category;
	}
	public void setPubDate(String pubdate)
	{
		_pubdate = pubdate;
	}
	public void setStartDate(String sDate) {
		mStartDate = sDate;
	}
	public void setEndDate(String eDate) {
		mEndDate = eDate;
	}
	public int getID() {
		return mID;
	}
	public int getRSSID() {
		return mRSSID;
	}
	public int getRSSCategory() {
		return mRSSCategory;
	}
	public double getLatitude() {
		return mLatitude;
	}
	public double getLongitude() {
		return mLongitude;
	}
	public String getRSSURL() {
		return mRSSURL;
	}
	public String getTitle()
	{
		return _title;
	}
	public String getDescription()
	{
		return _description;
	}
	public String getLink()
	{
		return _link;
	}
	public String getCategory()
	{
		return _category;
	}
	public String getPubDate()
	{
		return _pubdate;
	}
	public String getStartDate() {
		return mStartDate;
	}
	public String getEndDate() {
		return mEndDate;
	}
	public String toString()
	{
		// limit how much text we display
		if (_title.length() > 42)
		{
			return _title.substring(0, 42) + "...";
		}
		return _title;
	}
}
